import Vue from 'vue'
import * as echarts from 'echarts/core';
import { TitleComponent,
    TooltipComponent,
    GridComponent,
    LegendComponent } from 'echarts/components';
import { LineChart,
    PieChart } from 'echarts/charts';
import { UniversalTransition,
    LabelLayout } from 'echarts/features';
import { CanvasRenderer } from 'echarts/renderers';

echarts.use([
    TitleComponent,
    TooltipComponent,
    GridComponent,
    LegendComponent,
    LineChart,
    PieChart,
    CanvasRenderer,
    UniversalTransition,
    LabelLayout]);

Vue.prototype.$echarts = echarts